import React from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import { Provider } from "react-redux";
import store from "./store";
import Router from "./router";

import "normalize.css";
import "@/assets/styles/default.less";
import "@/assets/styles/global.less";

import { ConfigProvider } from "antd";
import zhCN from "antd/es/locale/zh_CN";

import "moment/dist/locale/zh-cn";
// import moment from "moment";
// moment.locale("zh-cn");

// import dayjs from "dayjs";
// import "dayjs/locale/zh-cn";
// dayjs.locale("zh-cn"); // 全局使用

import { Workbook } from "@fortune-sheet/react";
import "@fortune-sheet/react/dist/index.css";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <HashRouter>
        <Router />
      </HashRouter>
    </ConfigProvider>
  </Provider>
);

// ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
//   <Workbook data={[{ name: "Sheet1" }]} />,
// );
